#include <stdio.h>
#include "file.h"
#include "net.h"
int main()
{
	int iRet=0;
	int i;
	char passwd[20] = {0};
	char *name="hao";
	iRet=loadname(FILENAME,name,passwd);
	if(iRet == 0)
	{			
	    writename(FILENAME,name,passwd);
		printf("passwd:%s\n",passwd);
		open_server();
		return 0;
	}
	else
	{
		return -1;
	}
	return 0;
}
